extends Collectible
	

func _on_area_2d_body_entered(body: Node2D) -> void:
	var player = body as Player
	if not is_instance_valid(player):
		return
	player.number_of_coins += 1
	queue_free()
